package com.zhenzhen.xszhcp.serviceImpl;

import com.zhenzhen.xszhcp.mapper.ZhcjMapper;
import com.zhenzhen.xszhcp.model.Zhcj;
import com.zhenzhen.xszhcp.service.ZhcjService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
public class ZhcjServiceImpl implements ZhcjService {
    @Autowired
    private ZhcjMapper mapper;
    @Override
    public List<Zhcj> getZhcjList(Map paramMap) {
        return mapper.getZhcjList(paramMap);
    }

    @Override
    public Zhcj getZhcjByuands(Map paramMap) {
        return mapper.getZhcjByuands(paramMap);
    }

    @Override
    public List<Zhcj> getZhcjByUid(int uid) {
        return mapper.getZhcjByUid(uid);
    }

    @Override
    public List<Zhcj> getZhcjByxqid(int xqid) {
        return mapper.getZhcjByxqid(xqid);
    }

    @Override
    public Zhcj getZhcjByid(int id) {
        return mapper.selectByPrimaryKey(id);
    }

    @Override
    public int insertZhcj(Zhcj zhcj) {
        return mapper.insertSelective(zhcj);
    }

    @Override
    public int delZhcj(int id) {
        return mapper.deleteByPrimaryKey(id);
    }

    @Override
    public int upZhcj(Zhcj zhcj) {
        return mapper.updateByPrimaryKeySelective(zhcj);
    }

    @Override
    public List<Zhcj> getZhcjglList(Map paramMap) {
        return mapper.getZhcjglList(paramMap);
    }
}
